package com.yanyilu.basing.mapper;

import com.yanyilu.basing.common.R;
import com.yanyilu.basing.entity.OrderForm;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Sxx
 * @since 2020-10-27
 */
public interface OrderFormMapper extends BaseMapper<OrderForm> {

    OrderForm selectByUserId(@Param("userId") Integer userId);

    List<OrderForm> selectAll(@Param("orderNumber") String orderNumber);

    OrderForm selectByContactDetails(@Param("contactDetails") String contactDetails);

    void deleteByUserId(@Param("userId") Integer userId);
}
